﻿<%@ Assembly Name="SPGSharePointDataAccessQuickStart.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" %>
<%@ Page Language="C#" Inherits="SPGSharePointDataAccessQuickStart.SharePoint.SPGSharePointDataAccessQuickStart, SPGSharePointDataAccessQuickStart.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" MasterPageFile="~/_layouts/application.master" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>

<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
<SharePoint:EncodedLiteral ID="ListFormPageTitle" runat="server" EncodeMethod='HtmlEncode'/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
<SharePoint:EncodedLiteral ID="LinkTitle" runat="server" EncodeMethod='HtmlEncode'/>: <SharePoint:EncodedLiteral ID="ItemProperty" runat="server" EncodeMethod='HtmlEncode'/>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>
<asp:Content ID="Content4" contentplaceholderid="PlaceHolderPageImage" runat="server"/>
<asp:Content ID="Content5" ContentPlaceHolderId="PlaceHolderPageDescriptionRowAttr" runat="server">
style="display:none;"
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderId="PlaceHolderPageDescriptionRowAttr2" runat="server">
style="display:none;"
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
	<asp:Label id="LabelPageDescription" runat="server"/>
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderId="PlaceHolderMain" runat="server">
	<style type="text/css">
	table.ms-propertysheet {
	height: 100%;
	}
	</style>
	<table cellpadding=0 cellspacing=0 id="onetIDListForm">
 <tr>
  <td>
<div>
        SharePoint List Data Access<br /><br />
        Pattern: <asp:DropDownList ID="PatternsList" runat="server">
            <asp:ListItem Selected="True">Direct</asp:ListItem>
            <asp:ListItem>ListItemRepository</asp:ListItem>
            <asp:ListItem>AnnouncementRepository</asp:ListItem>
        </asp:DropDownList>
        <asp:LinkButton ID="RefreshButton" runat="server">Refresh View</asp:LinkButton>
        <br /><br />
        <br />
        Announcement: <asp:DropDownList ID="IDsList" AutoPostBack="true" runat="server">
        </asp:DropDownList>
        <br /><br />
        <asp:Label ID="GetLabel" EnableViewState="false" runat="server"></asp:Label>
        <asp:LinkButton ID="UpdateButton" EnableViewState="false" runat="server" Visible="false" Text="Update" OnClick="UpdateButton_Click" />
        <asp:LinkButton ID="DeleteButton" EnableViewState="false" runat="server" Visible="false" Text="Delete" OnClick="DeleteButton_Click" />
        <br />
        <br />
        <asp:LinkButton ID="AddButton" runat="server" Text="Add an Announcement" OnClick="AddButton_Click" />
        <br /><br />
        <asp:Label ID="MessageLabel" EnableViewState="false" runat="server"></asp:Label>
    </div>
  </td>
 </tr>
</table>
</asp:Content>